#ifndef CTRANSLATERESULTITEMWIDGET_H
#define CTRANSLATERESULTITEMWIDGET_H

#include <QWidget>

namespace Ui {
class CTranslateResultItemWidget;
}

class CTranslateResultItemWidget : public QWidget {
    Q_OBJECT

  public:
    explicit CTranslateResultItemWidget(QWidget* parent = nullptr);
    ~CTranslateResultItemWidget();

    void AppendText(const QString& text);
    void RefreshWidget();

  private slots:
    void on_btnCopy_clicked();

  protected:
    void leaveEvent(QEvent* event) override;

  private:
    Ui::CTranslateResultItemWidget* ui;
};

#endif  // CTRANSLATERESULTITEMWIDGET_H
